﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using XCore.Domain.Entities;
using XCore.Logger;

namespace SaaS.Model.Entity.Logs
{
    [Table("BlogLogs")]
    public class BlogLog : Entity<int>, IHasCreationTime, IHasCreateionIpAddress
    {
        /// <summary>
        /// 等级
        /// </summary>
        public string Level { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        public int Source { get; set; }
        /// <summary>
        /// 系统类型
        /// </summary>
        public string SystemType { get; set; }
        /// <summary>
        /// 信息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 执行时间
        /// </summary>
        public long ExecutionDuration { get; set; }
        /// <summary>
        /// 异常
        /// </summary>
        public string Exception { get; set; }
        /// <summary>
        /// 浏览器信息
        /// </summary>
        public string BrowserInfo { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public string CustomData { get; set; }
        public DateTime CreationTime { get; set; }
        public string IP { get; set; }
    }
}
